package com.yanqu.road.entity.activity.metaspace;

import com.yanqu.road.entity.DataObject;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_u_meta_space")
public class MetaspaceRewardData extends DataObject {
    @FieldTypeAnnotation(select = true,update = true,desc = "玩家id")
    private long userId;
    @FieldTypeAnnotation(select = true,update = true,desc = "活动id")
    private int activityId;
    @FieldTypeAnnotation(update = true,desc = "获奖记录id")
    private int id;
    @FieldTypeAnnotation(desc = "奖励")
    private String reward;
    @FieldTypeAnnotation(desc = "获奖时间")
    private long rewardTime;
    @FieldTypeAnnotation(desc = "手机号码")
    private long phoneMum;
    @FieldTypeAnnotation(desc = "地址")
    private String address;

    /**
     * 是否新获奖，不入库 只有在新增的时候为 true， 下发后改为 false
     */
    private boolean newAdd;

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
        setUpdateOption();
    }

    public long getRewardTime() {
        return rewardTime;
    }

    public void setRewardTime(long rewardTime) {
        this.rewardTime = rewardTime;
    }

    public long getPhoneMum() {
        return phoneMum;
    }

    public void setPhoneMum(long phoneMum) {
        this.phoneMum = phoneMum;
        setUpdateOption();
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
        setUpdateOption();
    }

    public boolean isNewAdd() {
        return newAdd;
    }

    public void setNewAdd(boolean newAdd) {
        this.newAdd = newAdd;
    }
}
